package com.rule.rules.impl.insurance.ruleengine;

import com.rule.rest.RuleNamespace;
import com.rule.rule.engine.InferenceEngine;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
/**
 * 为保险创建推理机
 * 对于保险推理引擎，INPUT_DATA 将是 PolicyHolderDetails 对象，而 OUTPUT_RESULT 将是 InsuranceDetails 对象。
 */
@Slf4j
@Service
public class InsuranceInferenceEngine extends InferenceEngine<PolicyHolderDetails, InsuranceDetails> {

    @Override
    protected RuleNamespace getRuleNamespace() {
        return RuleNamespace.INSURANCE;
    }

    @Override
    protected InsuranceDetails initializeOutputResult() {
        return InsuranceDetails.builder().build();
    }
}
